﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EC.Application.Interface
{
    using EC.Entity;
    using EC.Entity.Query;
    using EC.Entity.Request.Bank;
    using EC.Entity.Response.Bank;

    /// <summary>
    /// 银行列表接口
    /// </summary>
    public interface BankService
    {
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        BankResponse Get(int id);

        /// <summary>
        /// 根据编码获取银行信息
        /// </summary>
        /// <param name="bankCode"></param>
        /// <returns></returns>
        BankResponse GetBankByCode(string bankCode);


        /// <summary>
        /// 新增、编辑
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        JResult SaveBank(SaveBankRequest request);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        DataGrid<BankResponse> GetPager(BankQuery query);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        JResult DelBank(int Id);
    }
}
